/* -------------------- Processing Indicator -------------------- */
.processing-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px;
  background-color: var(--background-secondary);
  border-bottom: var(--standard-border); /* Or top, depending on placement */
  flex-shrink: 0;
}

.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--text-secondary); /* Base color */
  border-top-color: transparent; /* Make one side transparent */
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.cancel-btn {
  padding: 4px 12px;
  font-size: 13px;
  background-color: var(--error-color);
  color: var(--text-on-primary);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.25s var(--animation-curve); /* Enhanced transition with animation curve */
  position: relative;
  overflow: hidden;
}

.cancel-btn:hover {
  border: 1px solid var(--error-color);
  color: var(--text-primary);
  background-color: var(--background-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.cancel-btn:active {
  transform: translateY(0);
  transition: all 0.1s var(--animation-curve);
}

/* Add ripple effect similar to other buttons */
.cancel-btn::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.3) 10%, transparent 10.01%);
  background-repeat: no-repeat;
  background-position: 50%;
  transform: scale(10, 10);
  opacity: 0;
  transition:
    transform 0.3s,
    opacity 0.5s;
}

.cancel-btn:active::after {
  transform: scale(0);
  opacity: 0.4;
  transition: 0s;
}
.dark-mode .processing-indicator {
  border-color: var(--border-color);
}
